<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Post</title>
</head>
<body>

    <div id="send">
        <input type="button" value="get" id="get">
        <input type="button" value="post" id="post">
    </div>


</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script>

    $('#send').on('click','input',function(){
        var type=this.value;
        
        var cnt='post'==type?31:62;

console.log('type:',type,cnt);

        var obj=(function(){
            var obj={},m=0,n;
            while(m++<cnt){
                n=0;    
                obj[m]=[];
                while(n++<cnt){
                    obj[m].push(n);
                }
            }
            return obj;
        })();
        console.log(obj);

        $.ajax({
            url:'/post',
            type:type,
            data:{
                _:Date.now(),
                obj:obj
            },
            success:function(data){
                console.log(data);
            },
            error:function(err){
                console.error(err);
            }
        });


    });
</script>
</html>